cmake_minimum_required(VERSION 3.20)
project(uav)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

find_package(Qt5 COMPONENTS
        Core
        Gui
        Widgets
        REQUIRED)
find_package(OpenCV REQUIRED)

#add_executable(uav main.cpp)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread" )
set(project_file uav_sim.cpp mainwindow.cpp include/mainwindow.h include/AStar.h include/Laser.h include/RMap.h include/Point.h)


add_executable(${PROJECT_NAME} ${project_file})
include_directories(./include)

target_link_libraries(uav
        Qt5::Core
        Qt5::Gui
        Qt5::Widgets)

